package routes

import (
	"blog/internal/bootstrap"
	"blog/internal/middleware"
	"github.com/gin-gonic/gin"
)

func UseAdminRoutes(ctx *bootstrap.Context, engine *gin.RouterGroup) {
	engine.POST("/auth/login", ctx.Controllers.AuthController.Login)

	api := engine.Use(middleware.JWTMiddleware())
	{
		api.GET("/auth/logout", ctx.Controllers.AuthController.Logout)

	}

}
